from ronglian_sms_sdk import SmsSDK


accId = '8aaf070882ede8b30183545ca68811a0'
accToken = 'd135a3f0c0664a6488ad505224ff623e'
appId = '8aaf070882ede8b30183545ca76d11a7'


def send_message(mobile, code):
    sdk = SmsSDK(accId, accToken, appId)
    tid = '1'
    datas = (code,'1分钟')
    resp = sdk.sendMessage(tid, mobile, datas)
    return resp